# This file is managed by gitlab-ctl. Manual changes will be
# erased! To change the contents below, edit /etc/gitlab/gitlab.rb
# and run `sudo gitlab-ctl reconfigure`.

production:
  adapter: <%= @db_adapter %>
  encoding: <%= @db_encoding %>
  collation: <%= @db_collation %>
  database: <%= @db_database %>
  pool: <%= @db_pool %>
  username: <%= quote(@db_username) %>
  password: <%= quote(@db_password) %>
  host: <%= quote(@db_host) %>
  port: <%= @db_port %>
  socket: <%= quote(@db_socket) %>
  sslmode: <%= quote(@db_sslmode) %>
  sslcompression: <%= @db_sslcompression %>
  sslrootcert: <%= quote(@db_sslrootcert) || quote(@db_sslca) %>
  sslca: <%= quote(@db_sslca) || quote(@db_sslrootcert) %>
  <% if !@db_sslcert.nil? && !@db_sslkey.nil? %>
  sslcert: <%= quote(@db_sslcert) %>
  sslkey: <%= quote(@db_sslkey) %>
  <% end %>
  load_balancing: <%= @db_load_balancing.to_json %>
  prepared_statements: <%= @db_prepared_statements %>
  statement_limit: <%= @db_statements_limit %>
  fdw: <%= @db_fdw %>
  variables:
    statement_timeout: <%= @db_statement_timeout %>
